#include <iostream>
#include <string>
#include <list>
#include <vector>
#include <algorithm>
#include <map>
#include <stdlib.h>
#include <conio.h>
#include "mdbCCryptDES.h"

using namespace std;

int main(int argc, char* argv[])
{
    TMdbCCryptDES enc;
    char szKey[MAX_TEXT_LEN + 1] = ""; 
    string strKey("smart");
    if (argc == 2)
    {
        strKey = argv[1];
    }
    else
    {
        cout << "please input the key:" << endl;
        cin >> strKey;
    }

    enc.Encrypt(strKey.c_str(), szKey);
    
    cout << strKey << ": " << szKey << endl;

    _getch();
    return 0;
}